<?php
/**
 * 秒杀模型
 * User: ws
 * Date: 2018/9/30
 * Time: 9:34
 */

namespace app\admin\model;
use think\Model;
class GoodsSeckill  extends Model
{
    protected $createTime = 'add_time';
    protected $autoWriteTimestamp = true;
    protected $updateTime = false;

    public function setStartTimeAttr($data)
    {
        return strtotime($data);
    }
    public function setEndTimeAttr($data)
    {
        return strtotime($data);
    }

}